import { http } from "@/utils/http";
import type { BlogVo, CategoryListVo } from "@/type";

export const categoryApi = {
  getCategoryList: () => {
    return http.get<{ result: CategoryListVo[] }>("/category/list");
  },
  getDetail: (params: any) => {
    return http.get<{ count: number; rows: BlogVo[] }>("/category/detail", {
      params,
    });
  },
};
